import request from '@/utils/request'

export function listAllProjectContractInfo(query) {
  return request({
    // url: "/production/projectContractInfo/listAll",
    url: '/production/projectContractInfo/listByUser', //查询工程项目信息根据用户
    method: 'get',
    params: query,
  })
}

// 查询项目日报列表
export function listProjectDailyReport(query) {
  return request({
    url: '/production/projectDailyReport/list',
    method: 'get',
    params: query,
  })
}

// 查询项目日报详细
export function getProjectDailyReport(id) {
  return request({
    url: '/production/projectDailyReport/getInfo/' + id,
    method: 'get',
  })
}

// 新增项目日报
export function addProjectDailyReport(data) {
  return request({
    url: '/production/projectDailyReport/add',
    method: 'post',
    data: data,
  })
}

// 修改项目日报
export function updateProjectDailyReport(data) {
  return request({
    url: '/production/projectDailyReport/edit',
    method: 'post',
    data: data,
  })
}

// 删除项目日报
export function delProjectDailyReport(id) {
  return request({
    url: '/production/projectDailyReport/remove/' + id,
    method: 'get',
  })
}

// 查询项目利润报表列表
export function listProjectProfitReport(query) {
  return request({
    url: '/production/projectProfitReport/list',
    method: 'get',
    params: query,
  })
}

// 删除项目利润报表
export function delProjectProfitReport(id) {
  return request({
    url: '/production/projectProfitReport/remove/' + id,
    method: 'get',
  })
}

// 查询项目日成本分析详细
export function getProjectProfitReport(id) {
  return request({
    url: '/production/projectProfitReport/getInfo/' + id,
    method: 'get',
  })
}

// 查询停工日志列表
export function listBizStoppageLog(query) {
  return request({
    url: '/production/bizStoppageLog/list',
    method: 'get',
    params: query,
  })
}

// 查询停工日志详细
export function getBizStoppageLog(id) {
  return request({
    url: '/production/bizStoppageLog/getInfo/' + id,
    method: 'get',
  })
}

// 新增停工日志
export function addBizStoppageLog(data) {
  return request({
    url: '/production/bizStoppageLog/add',
    method: 'post',
    data: data,
  })
}

// 修改停工日志
export function updateBizStoppageLog(data) {
  return request({
    url: '/production/bizStoppageLog/edit',
    method: 'post',
    data: data,
  })
}

// 删除停工日志
export function delBizStoppageLog(id) {
  return request({
    url: '/production/bizStoppageLog/remove/' + id,
    method: 'get',
  })
}
